package com.tony.demo.edittext;

import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

import com.tony.demo.R;
import com.tony.demo.activity.BaseActivity;
import com.tony.demo.widget.TouchEditText;

public class EditTextActivity extends BaseActivity implements OnTouchListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit_text_layout);
        
        getWindow().getDecorView().setOnTouchListener(this);
    }

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		if(v.getId() != R.id.et_user_mood){
			((TouchEditText)findViewById(R.id.et_user_mood)).notifyOnTouchEvent();
		}
		Log.e("lbingt", "view id : " + v.getId());
		return false;
	}
}